package com.lktx.auto.controller;

import cn.hserver.core.server.util.JsonResult;
import cn.hserver.plugin.web.annotation.Controller;
import cn.hserver.plugin.web.annotation.GET;
import cn.hutool.core.util.StrUtil;

@Controller("/api/")
public class ChatController {


    @GET("removeChat")
    public JsonResult remove(String chatId){
        if (StrUtil.isEmpty(chatId)){
            return JsonResult.error();
        }
        ChatWebSocket.removeChatMessage(chatId);
        return JsonResult.ok();
    }

}
